package cn.stylefeng.guns.modular.stock.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author xzan
 * @since 2020-03-15
 */
@TableName("stock_strategy")
public class StockStrategy implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.UUID)
    private String id;
    @TableField("remark")
    private String remark;

    @TableField("code")
    private String code;

    @TableField("name")
    private String name;

    @TableField("buy_price")
    private Float buyPrice;

    @TableField("stop_loss_price")
    private Float stopLossPrice;

    @TableField("take_profit_price")
    private Float takeProfitPrice;

    @TableField("buy_date")
    private Date buyDate;

    @TableField("profit_rate")
    private Float profitRate;

    @TableField("sell_date")
    private Date sellDate;

    @TableField("buy_amount")
    private Integer buyAmount;
    @TableField("stock_position")
    private String stockPosition;

    @TableField("sell_amount")
    private Integer sellAmount;

    @TableField("status")
    private Integer status;

    @TableField("event_type")
    private Integer eventType;

    @TableField("gmt_create")
    private Date gmtCreate;

    @TableField("gmt_modified")
    private Date gmtModified;

    public String getStockPosition() {
        return stockPosition;
    }

    public void setStockPosition(String stockPosition) {
        this.stockPosition = stockPosition;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Float getBuyPrice() {
        return buyPrice;
    }

    public void setBuyPrice(Float buyPrice) {
        this.buyPrice = buyPrice;
    }

    public Float getStopLossPrice() {
        return stopLossPrice;
    }

    public void setStopLossPrice(Float stopLossPrice) {
        this.stopLossPrice = stopLossPrice;
    }

    public Float getTakeProfitPrice() {
        return takeProfitPrice;
    }

    public void setTakeProfitPrice(Float takeProfitPrice) {
        this.takeProfitPrice = takeProfitPrice;
    }

    public Date getBuyDate() {
        return buyDate;
    }

    public void setBuyDate(Date buyDate) {
        this.buyDate = buyDate;
    }

    public Float getProfitRate() {
        return profitRate;
    }

    public void setProfitRate(Float profitRate) {
        this.profitRate = profitRate;
    }

    public Date getSellDate() {
        return sellDate;
    }

    public void setSellDate(Date sellDate) {
        this.sellDate = sellDate;
    }

    public Integer getBuyAmount() {
        return buyAmount;
    }

    public void setBuyAmount(Integer buyAmount) {
        this.buyAmount = buyAmount;
    }

    public Integer getSellAmount() {
        return sellAmount;
    }

    public void setSellAmount(Integer sellAmount) {
        this.sellAmount = sellAmount;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getEventType() {
        return eventType;
    }

    public void setEventType(Integer eventType) {
        this.eventType = eventType;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    public String toString() {
        return "StockStrategy{" +
                "id=" + id +
                ", code=" + code +
                ", name=" + name +
                ", buyPrice=" + buyPrice +
                ", stopLossPrice=" + stopLossPrice +
                ", takeProfitPrice=" + takeProfitPrice +
                ", buyDate=" + buyDate +
                ", profitRate=" + profitRate +
                ", sellDate=" + sellDate +
                ", buyAmount=" + buyAmount +
                ", sellAmount=" + sellAmount +
                ", status=" + status +
                ", eventType=" + eventType +
                ", gmtCreate=" + gmtCreate +
                ", gmtModified=" + gmtModified +
                "}";
    }
}
